package com.doubao.auth.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtConfig {
    /**
     * 密钥      apiv3 密钥：DoubaoAuthServiceJwtSecretKey123
     */
    private String secret = "DoubaoAuthServiceJwtSecretKey0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

    /**
     * 有效时间（分钟）
     */
    private long expiration = 60;

    /**
     * 刷新令牌有效时间（天）
     */
    private long refreshExpiration = 7;

    /**
     * 令牌前缀
     */
    private String tokenPrefix = "Bearer ";

    /**
     * 请求头
     */
    private String header = "Authorization";
}